package br.com.amps.dao.generic;

import java.io.Serializable;
import java.util.List;



public interface GenericDAO <T, I extends Serializable> {
	 
	 public T save(T entity);
	  
	 public void remove(T entity);
	 
	 public void refresh(T entity);
	  
	 public T getById(Class<T> classe, I pk);
	  
	 public List<T> getAll(Class<T> classe);
	 
	 public void removeAll(List<T> list) throws Exception;
	 
	 public void removeAll(Class<T> t) throws Exception;
	  
}
